import request from '@/utils/request';


// 获取菜单
export const reqPermissionList = ()=>request({url:'/system/permission/',method:'get'})


// 添加或者修改菜单
export const reqAddOrUpdatePermission=(data)=>{

	if(data.id){
		return request({url:`/system/permission/${data.id}/`,method:'put',data})
	}else{
		return request({url:'/system/permission/',method:'post',data})
	}
}

// 删除菜单
export const reqRemovePermission = (id)=>request({url:`/system/permission/${id}/`,method:'delete'});


